﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SusuCMS
{
    public class UserRepository : RepositoryBase, IUserRepository
    {
        public UserRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { }

        public IQueryable<User> FindAll()
        {
            return _CmsDataContext.Users;
        }

        public void Add(User user)
        {
            _CmsDataContext.Users.Add(user);
        }

        public void Remove(User user)
        {
            _CmsDataContext.Users.Remove(user);
        }
    }
}
